package br.ufc.great.dtx.tm.sch;

import java.io.Serializable;

public class Message implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4129246730554898624L;
	public static final int COMMIT = 1;
	public static final int ABORT = 2;
	public static final int DISTRIBUTED_ABORT = 3;
	
	public static final int EXECUTED = 4;
	public static final int NONE = 5;
	
	private String transactionId;
	private int type;
	private int status;
	
	public Message(String transactionId, int type) {
		this.transactionId = transactionId;
		this.type = type;
		status = NONE;
	}

	public String getTransactionId() {
		return transactionId;
	}

	public int getType() {
		return type;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}
			
}
